﻿namespace SharpF2.Components
{
	using System.ComponentModel;

	public static class SortDescriptionOperations
	{
		#region Public Members

		public static ListSortDirection InvertDirection(this SortDescription me)
		{
			return (me.Direction == ListSortDirection.Ascending) ? ListSortDirection.Descending : ListSortDirection.Ascending;
		}

		#endregion
	}
}